package top.whysu.edevice.dto.system;

import java.util.List;

/**
 * 权限树节点
 */
public class PermissionNodeDTO {

    private String id;

    private String pid;

    private String text;

    private String state;

    private Boolean checked;

    private Boolean pageFlag;

    private Boolean hasParent;

    private Boolean hasChildren;

    private Integer sequence;

    private List<PermissionNodeDTO> children;

    /**
     * 权限来源（0：本地；1：PMS）
     */
    private int permissionSource;



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Boolean getPageFlag() {
        return pageFlag;
    }

    public void setPageFlag(Boolean pageFlag) {
        this.pageFlag = pageFlag;
    }

    public Boolean getHasParent() {
        return hasParent;
    }

    public void setHasParent(Boolean hasParent) {
        this.hasParent = hasParent;
    }

    public Boolean getHasChildren() {
        return hasChildren;
    }

    public void setHasChildren(Boolean hasChildren) {
        this.hasChildren = hasChildren;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public List<PermissionNodeDTO> getChildren() {
        return children;
    }

    public void setChildren(List<PermissionNodeDTO> children) {
        this.children = children;
    }

    public int getPermissionSource() {
        return permissionSource;
    }
    public void setPermissionSource(int permissionSource) {
        this.permissionSource = permissionSource;
    }
}

